import {useLocation,useParams} from 'react-router-dom'
function ProduceView() {
  const location = useLocation();
  const params = useParams();
  return ( <div>
    <h3>产品页面</h3>
    <p>哪个产品{params.id}</p>
    <p>{JSON.stringify(location)}</p>
    <p>{JSON.stringify(params)}</p>
      
  </div> );
}

export default ProduceView;